Skip to content

Go: memory leakage queries#39

Open
ex0dus-0x wants to merge 4 commits intomainfrom
alan/go_memleak
Open

Go: memory leakage queries#39
ex0dus-0x wants to merge 4 commits intomainfrom
alan/go_memleak

Conversation

@ex0dus-0x
Copy link
Copy Markdown
Contributor

@ex0dus-0x ex0dus-0x commented Apr 2, 2026

Add two Go queries for detecting behaviors that can lead to memory leakage:

  • DeferReleaseInLoop - deferring a resource release can cause memory leakage across iterations. This query models constrains search to common APIs where this would manifest (eg. os.OpenFile).
  • UnboundedIORead - invoking io.ReadAll of untrusted input can exhaust server memory for a denial-of-service.

@ex0dus-0x ex0dus-0x marked this pull request as ready for review April 15, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant